#ifndef __DIR_STACK_H__
#define __DIR_STACK_H__


#include "head.h"

typedef struct dir_node_s{
    char data[40];
    struct dir_node_s *next;
}dir_node_t,*pdir_node_t;

typedef struct dir_stack_s{
    dir_node_t *top;
    dir_node_t *bottom;
    int size;
}dir_stack_t,*pdir_stack_t;

int dir_stack_init(dir_stack_t *dstack);
int push_dir(dir_stack_t *dstack, char *dir);
int pop_dir(dir_stack_t *dstack);
int traverse_dir_stack(dir_stack_t *dstack, char *dir);
int reinit_dir_stack(dir_stack_t *dstack);


#endif
